export interface ResultTypes {
  code: number
  message: string
  data: any
  time: string
  sign: boolean
}

export interface ResultPageType {
  current: number
  pages: number
  records: any[]
  size: number
  total: number
}

export const ResultPageSuccess: ResultPageType = {
  current: 1,
  pages: 0,
  records: [],
  size: 0,
  total: 0
}

export const ResultSuccess: ResultTypes = {
  code: 200,
  message: 'success',
  data: null,
  time: '',
  sign: true
}
export const ResultFail: ResultTypes = {
  code: 500,
  message: '发生错误，请稍后再试',
  data: null,
  time: '',
  sign: false
}

export interface SearchPageTypes {
  current: number
  size: number
}
